#!/bin/sh

# usage:
# pass the new version number as first parameter
# ./make_download 1.2.1

svn copy -m "Version ${1}" https://serpent-php-template-engine.googlecode.com/svn/trunk/ https://serpent-php-template-engine.googlecode.com/svn/tags/$1
svn update
svn export tags/$1 ../serpent_$1/
zip -r -9 ../serpent_$1.zip ../serpent_$1/
rm -rf ../serpent_$1/
